﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Demo._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <h1>
        SecureCookie live demo page</h1>
    <form id="form1" runat="server">
    <div>
        <asp:Button ID="refresh" runat="server" Text="Refresh" />
        <br />
        <h3>
            Session state</h3>
        <asp:TextBox ID="sessionText" runat="server" EnableViewState="false" />
        <fieldset>
            <h3>
                Bake me a cookie</h3>
            <asp:Label ID="cookieNameLabel" runat="server" AssociatedControlID="cookieName" Text="Name" />
            <asp:TextBox ID="cookieName" runat="server" EnableViewState="false" />
            (MyCookie1 & MyCookie2 are secured)
            <br />
            <asp:Label ID="cookieValueLabel" runat="server" AssociatedControlID="cookieValue"
                Text="Value" />
            <asp:TextBox ID="cookieValue" runat="server" EnableViewState="false" />
            <br />
            <asp:Label ID="cookieExpiresInMinutesLabel" runat="server" AssociatedControlID="cookieExpiresInMinutes" Text="Expires (in minutes)" />
            <asp:TextBox ID="cookieExpiresInMinutes" runat="server" EnableViewState="false" />
            <asp:Button ID="bakeCookie" runat="server" Text="Bake me this cookie" />
        </fieldset>
        <h3>
            Cookies on this request</h3>
        <asp:GridView ID="cookiesGrid" runat="server" AutoGenerateColumns="true">
        </asp:GridView>
        <h3>
            Redirects</h3>
        <asp:Button ID="redirect1" Text="Redirect" runat="server" />
        <asp:Button ID="redirect2" Text="Redirect with end response" runat="server" />
        <asp:Button ID="throwException" Text="Throw exception" runat="server" />
    </div>
    </form>
</body>
</html>
